/**
 * 版权所有（c）2021. 上海海鼎信息工程股份有限公司，保留所有权利
 */
package com.lovely602.design.behavior.mediator;

/**
 * 抽象同事类
 *
 * @author lizhixing
 */
public abstract class Colleague {

  protected Mediator mediator;

  public void setMedium(Mediator mediator) {
    this.mediator = mediator;
  }

  /**
   * 接收
   */
  public abstract void receive();

  /**
   * 发送
   */
  public abstract void send();

}
